class DateData(object):
    def __init__(self, c_id, t_id, t_db_id, r_t,
                 s_s, e_s, mode, p_p, n_v_a, n_v_b, n_f,
                 m_v_a, m_v_b, m_f, m_c_a, m_c_b,
                 m_c_c, uf_p, ul_p, p_f, e_v, e_c,
                 w_l, i_s, d_s, battery, temperature):
        self.communicator_id = c_id
        self.terminal_id = t_id
        self.terminal_db = t_db_id
        self.record_time = r_t
        self.sys_state = s_s
        self.en_state = e_s
        self.mode = mode
        self.power_produce = p_p
        self.net_voltage_a = n_v_a
        self.net_voltage_b = n_v_b
        self.net_frequence = n_f
        self.mechine_voltage_a = m_v_a
        self.mechine_voltage_b = m_v_b
        self.mechine_frequence = m_f
        self.mechine_current_a = m_c_a
        self.mechine_current_b = m_c_b
        self.mechine_current_c = m_c_c
        self.useful_power = uf_p
        self.useless_power = ul_p
        self.power_factor = p_f
        self.excite_voltage = e_v
        self.excite_current = e_c
        self.water_level = w_l
        self.increase_state = i_s
        self.decrease_state = d_s
        self.battery = battery
        self.temperature = temperature
